<%@ page pageEncoding='UTF-8'%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:set var="contextPath" value="#request.get('javax.servlet.forward.context_path')" scope="request" />
<!DOCTYPE html>
<head>
    <title>Report Information</title>
    <%-- header --%>
    <jsp:include page="/WEB-INF/content/common/Header.jsp" flush="true"/>
    <script src="${contextPath}/js/report/report.js"></script>
</head>
<body class="metro">
	<%-- tob-bar --%>
    <jsp:include page="/WEB-INF/content/common/TopBar.jsp" flush="true"/>
       	
	<div id="main-container" class="body-wrapper">
        <%-- tob-container --%>
    	<jsp:include page="/WEB-INF/content/common/TopContainer.jsp" flush="true"/>
        
    	<div id="body-container">
			<div id="drug-edit-form-header-container" class="form-header-container">
				<h1 class="fg-orange">
                   Report
                   <small class="on-left-more fg-brown">summarization</small>
               </h1>
              </div>
		<div id="iframeContainer" style="display:none;">
        	<iframe name="iframe-form-result" src="${contextPath}/report/show" style="border:none; width: 100%; height: 540px;"></iframe>      	
		</div>
    		<div id="prescription-registration-selection-container" class="tile-area">
    			<div class="tile double double-vertical no-link">
    				<h2>Drug Stock</h2>
					<%--
    				<form action="${contextPath}/report/show" style="position: relative;" target="iframe-form-result">
    					<input type="hidden" name="type" value="drugstockstobeexpired"/>
    					<div class="input-control select" style="width: 100px; position: absolute; left: 0px;">
							<select name="daysToPass">
								<option value="10">10 Days</option>
								<option value="20">20 Days</option>
								<option value="30">30 Days</option>
							</select>
						</div>
	    				<input type="submit" class="btn-preview button full-width" value="to be expired" style="padding: 6px 12px; text-align: right;"/>
    				</form>
					--%>
					<a href="${contextPath}/report/show?type=drugstockstobeexpired&daysToPass=30" class="btn-preview button full-width" style="margin-bottom: 2px;">30 Days to be expired</a>
					<a href="${contextPath}/report/show?type=drugstocksexpired" class="btn-preview button full-width" style="margin-bottom: 2px;">already expired</a>
    			</div>
    			<div class="tile double double-vertical no-link">
    				<h2>Drugs</h2>
    				<a href="${contextPath}/report/show?type=drugsachievemin" class="btn-preview button full-width" style="margin-bottom: 2px;">Drugs Achieve Minimum Stock</a>
    			</div>
    		</div>
    	</div>
        
        <%-- bottom-container --%>
    	<jsp:include page="/WEB-INF/content/common/BottomContainer.jsp" flush="true"/>
        
	</div>
    
    <%-- footer-container --%>
    <jsp:include page="/WEB-INF/content/common/FooterContainer.jsp" flush="true"/>
    
</body>
</html>